package com.ssm.zhihu_ssm.entity;

import javax.persistence.*;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.data.annotation.CreatedDate;

import java.util.Date;

@Data
public class Question {

    private Integer id;//问题id

    private String title;//问题标题

    private int uid;//用户id

    private String content_question;//问题内容

    @CreatedDate
    @JsonFormat(pattern="yyyy-MM-dd hh:mm:ss")
    private Date question_time;//提问时间

    private int skim_num;//阅读数量

    private int comment_num;//评论数量

    private String img;//图片路径

    private int state;//图片状态

    private int follow_username;//关注问题的用户数

    private int isFollow;//用户是否关注该问题
}